package cn.itsource.org.mapper;

import cn.itsource.basic.domain.BaseQuery;
import cn.itsource.org.domain.Department;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DepartmentMapper extends Mapper<Department> {

    //基础的查询
    List<Department> loadAll(BaseQuery query);

    List<Department> findAll();

    Department loadById(Long id);

    void save(Department department);
    void update(Department department);
    void remove(Long id);

    //分页方法1.查询总条数
    Long queryCount(BaseQuery query);

    //分页方法2,查询当前页的数据
    List<Department> queryData(BaseQuery query);

    //批量删除
    void batchDelete(List<Long> ids);




}
